package com.triple.interviewexpert.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface HotKeyCache {

    /**
     * HotKey的前缀
     *
     * @return
     */
    String keyPrefix() default "";

    /**
     * HotKey的id在参数中的索引
     *
     * @return
     */
    int keyParamIndex() default -1;
}
